package com.yunc.modules.shop.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunc.base.SuperMapper;
import com.yunc.modules.shop.entity.Order;
import com.yunc.modules.shop.entity.dto.OrderDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends SuperMapper<Order> {

    String getMaxOrderNumber(@Param("date") String date);

    List<OrderDTO> selectEntityList(Page<OrderDTO> page, @Param("order") Order order);
}
